/**
 * 
 */
package com.gite.nouette.admin.implementation.integrator.builder;

import com.gite.nouette.admin.contract.integrator.builder.IBuilder;
import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;

/**
 * @author Cyril
 * 
 */
public abstract class AbstractBuilder implements IBuilder {
	private IFactoryModel factoryModel = null;

	public AbstractBuilder(IFactoryModel factoryModel) {
		setFactoryModel(factoryModel);
	}

	/**
	 * @return the factoryModel
	 */
	@Override
	public IFactoryModel getFactoryModel() {
		return this.factoryModel;
	}

	/**
	 * @param factoryModel
	 *            the factoryModel to set
	 */
	@Override
	public void setFactoryModel(IFactoryModel factoryModel) {
		this.factoryModel = factoryModel;
	}

	@Override
	public void buildId() {
		// TODO real id
		getProduct().setId(0);
	}

}
